package com.ruoyi.system.service.impl;

import com.ruoyi.system.mapper.TaskTemplateTableMapper;
import com.ruoyi.system.service.TaskTemplateTableService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TaskTemplateTableServiceImpl implements TaskTemplateTableService {

    private static final Log log = LogFactory.getLog(TaskTemplateTableServiceImpl.class);
    @Autowired
    private TaskTemplateTableMapper taskTemplateTableMapper;

    /**
     * 获取表对应的数据库db
     *
     * @param tableName
     * @return
     */
    @Override
    public String getDBNameByTableName(String tableName) {
        String dbName = taskTemplateTableMapper.getDBNameByTableName(tableName);
        return dbName;
    }
}
